"use strict";

$(function () {
    let minusBtn = $("#mh-commodity-minus-button");
    let plusBtn = $("#mh-commodity-plus-button");
    let TextNum = $("#mh-commodity-text-num");

    minusBtn.click(function () {
        if (TextNum.val() > 1) {
            TextNum.val(parseInt(TextNum.val()) - 1)
        }
    })

    plusBtn.click(function () {
        TextNum.val(parseInt(TextNum.val()) + 1)
    })
})